#!/bin/sh

if [ $# -lt 1 ]
then
    echo "please input src_set_id"
    exit
fi


cd /home/qie_cwar_1/code/

date=`date +%Y%m%d%H%M%S`

tar -zcvf config_${date}.tar.gz config/txt --exclude=*.svn  --exclude=safe_svrd101.sh

tar -zxvf config_${date}.tar.gz -C /home/qie$1/code/

kill -2 `cat /home/qie$1/code/run/$1gamesvrd/$1gamesvrd.pid`

rm -f config_${date}.tar.gz

